import { defineConfig } from "vitepress";

// https://vitepress.dev/reference/site-config
export default defineConfig({
  title: "项目文档",
  description: "项目描述",
  lastUpdated: true,

  head: [["link", { rel: "icon", href: "/logo.png" }]],

  themeConfig: {
    // https://vitepress.dev/reference/default-theme-config

    logo: "/logo.png",

    nav: [
      { text: "主页", link: "/" },
      { text: "帮助", link: "/help" },
      {
        text: "版本",
        items: [
          { text: "v1.0", link: "https://gitee.com/liang-tian-yu/vitepress" },
          { text: "v2.0", link: "/" },
        ],
      },
    ],

    sidebar: [
      {
        text: "Examples",
        items: [
          { text: "Markdown Examples", link: "/markdown-examples" },
          { text: "Runtime API Examples", link: "/api-examples" },
        ],
      },
    ],

    socialLinks: [{ icon: "github", link: "https://gitee.com/liang-tian-yu" }],

    footer: {
      message: "Released under the MIT License.",
      copyright: `版权所有 © 2023-${new Date().getFullYear()} lty`,
    },

    docFooter: {
      prev: "上一页",
      next: "下一页",
    },

    outline: {
      label: "页面导航",
    },

    search: {
      provider: "local",
    },
  },
});
